cmake_minimum_required(VERSION 3.13)

set(EXEC_NAME netgen2vtk)

project(${EXEC_NAME})

set(CMAKE_PREFIX_PATH "C:/netgen")

find_package(Netgen REQUIRED)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED)

add_executable(${EXEC_NAME} src.v1/main.cxx src.v1/utils.cxx)

target_compile_definitions(${EXEC_NAME} PRIVATE OCCGEOMETRY)
# target_include_directories(${EXEC_NAME} PRIVATE ${NETGEN_INCLUDE_DIRS})
target_link_directories(${EXEC_NAME} PRIVATE ${NETGEN_LIBRARY_DIR})
target_link_libraries(${EXEC_NAME} PRIVATE nglib)

